/*
 * @Author: 张笑天
 * @Date: 2018-03-07 17:08:04
 * @Last Modified by: Theoton
 * @Last Modified time: 2018-03-26 11:40:05
 */
import { WeaTools } from 'ecCom';

const { callApi } = WeaTools;
const tableUrl = '/api/email/list/allList';
const conditionUrl = '/api/email/list/getListCondition';
const dropDownUrl = '/api/email/list/getListPageDropDown';
const layoutUrl = '/api/email/setting/updateLayout';

export default {
  getDatas: params => callApi(tableUrl, 'GET', params),
  getCondition: params => callApi(conditionUrl, 'GET', params),
  getdropDown: params => callApi(dropDownUrl, 'GET', params),
  saveLayout: params => callApi(layoutUrl, 'POST', params),
  getReciveAccount: params => callApi('/api/email/base/getReciveAccount', 'GET', params),
  getOuterEmails: params => callApi('/api/email/base/get', 'GET', params), // 自动接收邮件的接口
};
